import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//双语
import VueI18N from '@/i18n/index'
//element-ui
import ElementPlus, { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
import '@/styles/element-variables.scss'
//axios
import axios from 'axios'
import VueAxios from 'vue-axios'


const app = createApp(App)
app.use(store)
app.use(router)

app.use(ElementPlus, {
  i18n: VueI18N.global.t
})
app.config.globalProperties.$message = ElMessage
app.config.globalProperties.$msgbox = ElMessageBox
app.config.globalProperties.$alert = ElMessageBox.alert
app.config.globalProperties.$confirm = ElMessageBox.confirm
app.config.globalProperties.$prompt = ElMessageBox.prompt
app.config.globalProperties.$notify = ElNotification
app.use(VueI18N)

app.use(VueAxios, axios)

app.mount('#app')
